package com.song.ssm.entity;

/**
 * @Author 宋伟宁
 * @Date 2023/10/12
 * @Version 1.0
 **/

public class R<T> {
    /**
     * 布尔值
     */
    private boolean flag;
    /**
     * 状态码
     */
    private Integer code;
    /**
     * 执行的消息
     */
    private String mess;
    /**
     * 返回的数据
     */
    private Object data;

    public R() {
    }

    public R(boolean flag, Integer code, String mess, Object data) {
        this.flag = flag;
        this.code = code;
        this.mess = mess;
        this.data = data;
    }
    public R(boolean flag, Integer code, String mess) {
        this.flag = flag;
        this.code = code;
        this.mess = mess;

    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
